import cv2

vc=cv2.VideoCapture("D:\\gluoncv\\gluoncv\\gluon\\data/fuwo1.mp4")

c=1

if vc.isOpened():
    rval,frame=vc.read()
else:
    rval=False

timeF=2
cc=1
while rval:
    rval,frame=vc.read()
    if(c%timeF==0):
        cv2.imwrite('D:\\gluoncv\\gluoncv\\gluon\\data\\fuwo\\'+str(cc)+'.jpg',frame)
        cc=cc+1
    c=c+1
    cv2.waitKey(1)
vc.release()